const http = require('http');

http.createServer((req, res) => {
  console.log(req.url);

  res.writeHead(200, {
    "Content-Type": "text/html;charset='utf-8'"
  });

  res.write("<head><meta charset='utf-8'></head>")

  res.write("this is nodejs 奥德赛撒多aa");

  // 结束响应
  res.end()
}).listen(3000);